package com.dljd.javase.t13.json;

public class Car {
    private String brand;
    private String color;
    private String series;
    private float  pailiang;
    private float weight;

    public Car() {
    }

    @Override
    public String toString() {
        return "Car{" +
                "brand='" + brand + '\'' +
                ", color='" + color + '\'' +
                ", series='" + series + '\'' +
                ", pailiang=" + pailiang +
                ", weight=" + weight +
                ", maxSpeed=" + maxSpeed +
                '}';
    }

    public String getBrand() {
        return brand;
    }

    public void setBrand(String brand) {
        this.brand = brand;
    }

    public String getColor() {
        return color;
    }

    public void setColor(String color) {
        this.color = color;
    }

    public String getSeries() {
        return series;
    }

    public void setSeries(String series) {
        this.series = series;
    }

    public float getPailiang() {
        return pailiang;
    }

    public void setPailiang(float pailiang) {
        this.pailiang = pailiang;
    }

    public float getWeight() {
        return weight;
    }

    public void setWeight(float weight) {
        this.weight = weight;
    }

    public int getMaxSpeed() {
        return maxSpeed;
    }

    public void setMaxSpeed(int maxSpeed) {
        this.maxSpeed = maxSpeed;
    }

    private int maxSpeed;

    public Car(String brand, String color, String series, float pailiang, float weight, int maxSpeed) {
        this.brand = brand;
        this.color = color;
        this.series = series;
        this.pailiang = pailiang;
        this.weight = weight;
        this.maxSpeed = maxSpeed;
    }
}
